<?php

require "../../system/framework.php";
//require_once("../../system/api/simplehtmldom/simple_html_dom.php");


$title=request::generalRequest('title');
$template=request::generalRequest('template');
$usergroup=request::generalRequest('usergroup');

$content = new content(); 



//$menuActive = false;
if (isset($_REQUEST['menu_active'])) {
    $menuActive = true;
    $content->menuActive = $menuActive;  
}
     
     
                    


$content->title = $title;
$content->template = $template;
//$content->parentUrl = "/web";

$content->url = request::generalRequest("_url");



//$content->text = '<p>hello world</p>';
//$content->url = "/hello-9";


//$content->createContentFile = true;
//$content->template = "admin.html";
$url = $content->updateContent();



     


// redirect
http::redirect($url);




?>